package com.balisong.y.web;

import com.balisong.y.pojo.Sku;
import com.balisong.y.service.SkuSercice;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping
public class SkuController {
    @Resource
    private SkuSercice skuSercice;

    @GetMapping("/findAll")
    public List<Sku> findAll() {
        return skuSercice.list();
    }
}
